package oli.plugmgr.errors
{
	import oli.plugpack.errors.PlugError;

	public class PlugLoadError extends PlugError
	{
		public function PlugLoadError(currentPlugName:String,message:String = null ,id:*=0)
		{
			message += "Classes inside the plugin '"+currentPlugName+"' cannot be found.\n" + 
							"Make sure you specified a Class which implements the 'IPlugInActivator' \n" + 
							"interface and a 'META_INF' class ,which implements the 'Info' interface \n" + 
							", returns meta information in XML form and sits in the default package \n" + 
							"(meaning ,usually, no package).\n" + 
							"Furthermore, your 'IPlugInActivator' implementation should reference your \n" + 
							"'META_INF' class and all your services, because the compiler leaves out unreferenced Classes.\n" + 
							"This can be achieved simply by specifying 'private var m:META_INF;' of just 'META_INF;' in your \n" + 
							"code.\n Alternatively, you can force your compiler to include those classes via the -includes [class]\n" + 
							"[...]'(space-seperated list of your fully qualified class names) switch .\n" + 
							"If you created a lot of services it might be easier to compile them into a swc and reference them \n" + 
							"through the '-include-libraries [swc] [...]' compiler switch. \n" 
							;
			super(message, id);
		}
	}
}